package cn.wangliang181230.boot.web.controller;

import cn.wangliang181230.json.parser.IJSONParser;
import cn.wangliang181230.json.parser.JSONUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;

@Controller
public class MyController {

	@Resource
	private IJSONParser jsonParser;


	@GetMapping("/test")
	public String test(TestParam param) {
		System.out.println("test: " + System.currentTimeMillis());
		System.out.println("param: " + JSONUtil.toJSONString(param));
		System.out.println("param: " + jsonParser.toJSONString(param));
		return "test.html";
	}

}
